<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>tabla color</title>
</head>
<body>
<f:view>
<h:dataTable value="#{colorBean.colores}" var="color" border="1">
<h:column><f:facet name="header">nombre</f:facet> <h:outputText value="#{color.nombre}" /> </h:column>
<h:column><f:facet name="header">r</f:facet> <h:outputText value="#{color.r}" /> </h:column>
<h:column><f:facet name="header">g</f:facet> <h:outputText value="#{color.g}" /> </h:column>
<h:column><f:facet name="header">b</f:facet> <h:outputText value="#{color.b}" /> </h:column>
<h:column><f:facet name="header">Eliminar</f:facet> 
<h:form>
<h:commandLink action="paginaConfirm.xhtml">
 <h:outputText value="Eliminar"/>
 <f:setPropertyActionListener value="#{color}" target="#{colorBean.color}"/>
</h:commandLink>
</h:form>
</h:column>
</h:dataTable>
</f:view>
</body>
</html>